<%@ page import="cqcvc.edu.cn.entity.ActivityInfo" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021-12-24
  Time: 上午 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>

<body>
<jsp:include page="../index/index-header.jsp"></jsp:include>
<%--<jsp:useBean id="activity" class="cqcvc.edu.cn.entity.ActivityInfo"/>--%>
<%
    Long id=Long.parseLong(request.getParameter("id"));
    ActivityInfo activity=new ActivityInfo();
    List<ActivityInfo> aiList = (List<ActivityInfo>) application.getAttribute("activityInfos");
    for(int i=0;i<aiList.size();i++)
    {
        if(aiList.get(i).getId()==id)
        {
            activity=aiList.get(i);
            activity.setActTitle(aiList.get(i).getActTitle());
            break;
        }
    }
%>
<%--<jsp:setProperty name="activity" property="actTitle" value="<%=activity.getActTitle()%>" />--%>
<div ng-controller="activeInfoCtrl">
    <div class="row">
        <div class="col-xs-12" style="border-bottom: 1px solid lightgray; margin-bottom: 15px">
            <h1 class="text-center">
                <%=activity.getActTitle()%>
                <%--<jsp:getProperty name="activity" property="actTitle"/>--%>
            </h1>
            <h3 class="text-center" style="color: #898989">
                <%=activity.getActExtra()%>
                <%--<jsp:getProperty name="activity" property="actExtra"/>--%>
            </h3>
        </div>
    </div>
    <div class="row" style="margin-bottom: 15px">
        <div class="col-xs-12">
            <img class="center-block" src="<%=request.getContextPath()%>/activity_image_show?id=<%=activity.getId()%>" style="width: 800px" ng-if="data.id" />
        </div>
    </div>
    <div class="container">
        <dl class="dl-horizontal">
            <dt>
                活动名称：
            </dt>
            <dd>
                <%=activity.getActTitle()%>
                <%--<jsp:getProperty name="activity" property="actTitle"/>--%>
            </dd>
        </dl>
        <dl class="dl-horizontal" ng-if="data.actPrice">
            <dt>
                套餐及活动价格：
            </dt>
            <dd>
                <%=activity.getActPrice()%>
                <%--<jsp:getProperty name="activity" property="actPrice"/>--%>
            </dd>
        </dl>
        <dl class="dl-horizontal" ng-if="data.actDetail">
            <dt>
                活动描述：
            </dt>
            <dd>
                <%=activity.getActDetail()%>
                <%--<jsp:getProperty name="activity" property="actDetail"/>--%>
            </dd>
        </dl>
    </div>
</div>


<jsp:include page="../index/index-foot.jsp"/>
</body>
</html>
